package cn.scm.server.multistage.controller;

import cn.scm.server.multistage.entity.BizCustomerLimit;
import cn.scm.server.multistage.service.BizCustomerLimitService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 客户额度表(BizCustomerLimit)表控制层
 *
 * @author makejava
 * @since 2020-09-23 20:52:23
 */
@RestController
@RequestMapping("bizCustomerLimit")
public class BizCustomerLimitController {
    /**
     * 服务对象
     */
    @Resource
    private BizCustomerLimitService bizCustomerLimitService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public BizCustomerLimit selectOne(String id) {
        return this.bizCustomerLimitService.queryById(id);
    }

}